package com.online.onlinestudent.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("courses")
public class Course {
    @TableId(value = "id", type =  IdType.AUTO)
    private Long id;
    private String title;
    private String description;//短描述
    private String courseIntroduction;//长描述
    private Long categoryId;
    private Long teacherId;
    private String videoUrl;
    private String imageUrl;
    private Integer status;//课程状态
    // 创建时间，插入时自动填充
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

}
